package com.shuizhu.controller;

import com.shuizhu.service.ExcelServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @睡竹
 */
@Controller
public class ExcelController {

    @Autowired
    private ExcelServiceImpl service;

    @PostMapping("/export")
    public void downExcel(HttpServletRequest reuqest, HttpServletResponse response){
         service.downExcel(reuqest,response);
    }

}
